#ifndef TEXTEDITOR_H
#define TEXTEDITOR_H

#include <BTextEdit>

using namespace BWE;

class TextEditor : public BTextEdit
{
	BOBJECT(TextEditor);
public:
	TextEditor(BWidget* parent = 0);
	~TextEditor();

	bool loadFile(const BString& fileName);
	bool saveFile(const BString& fileName);

protected:
	virtual void styleEvent(const BEvent& event);
	virtual void freshEvent(const BEvent& event);
	virtual void paintEvent(const BEvent& event);

};

#endif
